\documentclass[11pt,twoside,a4paper]{article}
% define the title
\title{Minimalism}
\author{H. Partl}
\begin{document}
% generates the title
\maketitle
% insert the table of contents
\tableofcontents
\section{Some Interesting Words}
Well, and here begins my lovely article.
\section{Good Bye World}
\ldots{} and here it ends.
\end{document}